package com.repository;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.entity.Comment;

@Repository
@Transactional
public interface CommentRepository extends JpaRepository<Comment, String> {
    List<Comment> findByArticleIdOrderByCreateTimeAsc(String articleId);

}
